Skip to main content

Rename Folder

AutomatR.DefaultActivities.FileAndFolder.RenameFolder

The "Rename Folder" activity in AutomatR allows you to rename a specified folder. This activity falls under the Folder category and provides a convenient way to rename folders, enhancing folder management capabilities in your automation workflows.

Properties

NameDescription
Input
Folder PathSpecifies the full path of the folder that you intend to rename. String variables containing the folder path.
New Folder NameSpecifies the new name that you want to assign to the folder after renaming. String variables containing the new folder name.
Misc
Display NameProvides a customizable name for the activity displayed in the workflow. The display name enhances clarity and organization within the automation project. String variables containing the desired display name.
Optional
DelaySpecifies the amount of time (in seconds) to wait before executing the "Rename Folder" activity. Useful for handling synchronization issues. Integer variables containing the delay duration. Example: If the wait time is 1000 milliseconds or 1 sec, i.e., 1.

How to use:

  1. Drag and drop the "Rename Folder" activity onto the workflow.
  2. Configure the properties by specifying the folder path and the new folder name.
  3. Optionally, configure the delay.
  4. Execute the workflow to rename the specified folder.

Example: Consider an example where the "Rename Folder" activity is used to rename a folder named "Sample" to "NewVijay" in the "D:\RenameFolder\" directory:

Rename Folder:
Folder Path: "D:\RenameFolder\Sample"
New Folder Name: "NewSample"

In this example, the activity renames the "Sample" folder to "NewSample" in the specified path. Adjust the folder path and new folder name based on your requirements.